-- GENERATED SPELL FOR [Smoldering Skeleton Attacker] --


function spell0_33016(pUnit, Event) --@Smoldering Bones,Self--
pUnit:FullCastSpellOnTarget(51437,pUnit)
pUnit:RegisterEvent('Sorts_33016', 0, 1)
end

function Sorts_33016(pUnit, Event)
local choix_sorts_33016 = math.random(0, 0)
if choix_sorts_33016 == 0 then
pUnit:RegisterEvent('spell0_33016', 1, 1)
end
end

function mob33016_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33016', math.random(1500, 3000), 1)
end

function mob33016_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33016_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33016_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33016, 1, 'mob33016_Action')
RegisterUnitEvent(33016, 2, 'mob33016_Leave')
RegisterUnitEvent(33016, 3, 'mob33016_Kill')
RegisterUnitEvent(33016, 4, 'mob33016_Die')
